<template>
  <div class="dad">
      爸爸
      <hr>
      <Son @egz='add' @money='sd' />
      <hr>
      <Child :info="info1"/>
  </div>
</template>

<script>
import Son from "./Son.vue"
import Child from "./Child.vue"
export default {
    name:"Dad",
    data () {
        return {
            info1:'',//给大子组件的信息
        }
    },
    components:{
        Son,
        Child
    },
    methods:{
        add(v){// 子组件传的参数
            console.log(v)
        },
        sd(v){// 收到二子的信息
           console.log(v)
           this.info1=v
        }
    }
}
</script>

<style>

</style>